package com.tarena.lbs.business.dao.mapper;

import com.tarena.lbs.business.pojo.po.BusinessPO;
import com.tarena.lbs.business.pojo.query.BusinessQuery;
import com.tarena.lbs.business.pojo.vo.BusinessStoreVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BusinessMapper {
	
	// 根据商家名称查询商家
	BusinessPO queryByName(String name);
	
	// 新增商家
	int save(BusinessPO businessPO);
	
	// 查询商家列表
	List<BusinessPO> selectList(BusinessQuery query);
	
	// 查询商家详情
	BusinessStoreVO getDetailById(Integer businessId);
	
}
